package com.cdcas.class1920;

public class Dept {
    private Long deptno;
    private String dname;
    private Company company;

    public Long getDeptno() {
        return deptno;
    }

    public void setDeptno(Long deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    @Override
    public String toString() {
        return "部分信息:" +"deptno=" +deptno + "dname=" + dname;
    }
}
